package top.moonkit.rs_pro.exception;

import lombok.Data;

/**
 * 自定义业务异常类
 */
@Data
public class BusinessException extends RuntimeException {
    private int code = 500;
    private String message;
    private String details;

    public BusinessException(String message) {
        super(message);
        this.message = message;
    }
    public BusinessException(String message, String  details) {
        super(message);
        this.message = message;
        this.details = details;
    }


    public BusinessException(int code, String message, String details) {
        super(message);
        this.code = code;
        this.message = message;
        this.details = details;
    }

}